package org.rugby.online.impl;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertNotNull;

import org.junit.Before;
import org.junit.Test;
import org.rugby.online.core.humans.RboHumanGroup;
import org.rugby.online.impl.DefaultHumanGroup;

public class DefaultHumanGroupTest {

	private static final String GROUP_NAME = "TestGroup";
	
	private RboHumanGroup group;
	
	@Before
	public void setUp() throws Exception {
		group = new DefaultHumanGroup(GROUP_NAME, 10);
	}

	@Test
	public void testGetSize() {
		int size = group.getSize();
		System.out.println("[TEST SIZE] > " + String.valueOf(size));
		assertTrue(size == 10);
	}

	@Test
	public void testGetName() {
		String name = group.getName();
		System.out.println("[TEST NAME] > " + name);
		assertTrue(name.equals(GROUP_NAME));
	}

	@Test
	public void testGetId() {
		assertNotNull(group.getId());
	}

}
